const getters = {
	//用户信息
	username: state => state.user.username,
	nickname: state => state.user.nickname,
	token: state => state.user.token,
	avatar: state => state.user.avatar,
	//菜单以及路由信息
	menus: state => state.user.menus,
	routes: state => state.permission.routes,
	addRoutes: state => state.permission.addRoutes,
	//全局设置信息
	sidebar: state => state.setting.sidebar
  
}
export default getters